//
//  NSString+TGM.m
//  TravelGuideMdd
//
//  Created by BigPolarBear on 3/12/14.
//  Copyright (c) 2014 mafengwo.com. All rights reserved.
//

#import "NSString+TGM.h"

@implementation NSString (TGM)

+ (BOOL)isEmptyString:(NSString*)string;
{
    if (string && [string isKindOfClass:[NSString class] ] && [string length] > 0)
    {
        return NO;
    }
    return YES;
}

+ (NSString*)stringOfMonthNumber:(NSInteger)month
{
    switch (month) {
        case 1:
            return @"一";
        case 2:
            return @"二";
        case 3:
            return @"三";
        case 4:
            return @"四";
        case 5:
            return @"五";
        case 6:
            return @"六";
        case 7:
            return @"七";
        case 8:
            return @"八";
        case 9:
            return @"九";
        case 10:
            return @"十";
        case 11:
            return @"十一";
        case 12:
            return @"十二";
        default:
            break;
    }
    
    
    return [NSString stringWithFormat:@"%d",month];
}

@end
